package com.gzgy.ustore.api.service;

import com.gzgy.ustore.api.model.ApkInfo;
import com.gzgy.ustore.api.model.ApkListModel;
import com.ustore.model.ApkFileRecord;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;


/**
 * Created by yimi on 2017/7/3.
 */
public interface ApkService {

    public List<ApkListModel> getApkList(String sn, String timeStamp) ;

    public String checkForRegister(String sn, String timeStamp) ;

    public String registerDeviceToken(String sn, String timeStamp,String deviceToken) throws SQLException;

    public ApkFileRecord apkUpload(String apkPath, String imagePath, Double appSize, ApkInfo apkInfo, String userId, String companyId,String appCode);

    public String addAppInfo(String deviceType, String developer, String summaryDesc, String osInfo, String detailDesc, String updateDesc, Integer apkFileId, String userId) throws SQLException;

    public String setAppDownloadRule(String userId,String dvcRule,String appCode,String downloadTimeRule,String updateRule,
                                     String downloadRule,String downloadTimeStart,String downloadTimeEnd,String companyId,String recommendRule) throws SQLException;

    public Map<String ,Object> apkListByWeb(String companyId, String index, String page, String appCode, String dvcType);

    public String deleteApk(String apkId,String userId) throws SQLException;
}


